# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='TbApplyform',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('card_id', models.CharField(null=True, max_length=30, blank=True)),
                ('form_content', models.TextField(null=True, blank=True)),
                ('apply_type', models.CharField(null=True, max_length=50, blank=True)),
                ('applicant', models.CharField(null=True, max_length=50, blank=True)),
                ('apply_dept', models.CharField(null=True, max_length=50, blank=True)),
                ('apply_time', models.DateTimeField(null=True, blank=True)),
                ('form_footer', models.CharField(null=True, max_length=255, blank=True)),
                ('sign_status', models.IntegerField(null=True, blank=True)),
                ('desc', models.CharField(null=True, max_length=255, blank=True)),
                ('name', models.CharField(null=True, max_length=30, blank=True)),
                ('apply_endtime', models.DateTimeField(null=True, blank=True)),
                ('file1', models.TextField(null=True, blank=True)),
                ('file2', models.CharField(null=True, max_length=255, blank=True)),
                ('file3', models.CharField(null=True, max_length=255, blank=True)),
                ('file4', models.CharField(null=True, max_length=255, blank=True)),
                ('file5', models.CharField(null=True, max_length=255, blank=True)),
                ('file6', models.CharField(null=True, max_length=255, blank=True)),
                ('degree', models.CharField(null=True, max_length=20, blank=True)),
                ('sign_image', models.CharField(null=True, max_length=20, blank=True)),
                ('layout', models.CharField(null=True, max_length=25, blank=True)),
                ('pdf', models.CharField(null=True, max_length=255, blank=True)),
            ],
            options={
                'db_table': 'tb_applyform',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbCustomerPaper',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('ecn_no', models.CharField(null=True, max_length=255, blank=True, db_column='ECN_NO')),
                ('version', models.CharField(null=True, max_length=255, blank=True)),
                ('p_name', models.CharField(null=True, max_length=255, blank=True)),
                ('st_site', models.CharField(null=True, max_length=255, blank=True, db_column='ST_site')),
                ('drawing_type', models.CharField(null=True, max_length=255, blank=True)),
                ('definer_name', models.CharField(null=True, max_length=255, blank=True)),
                ('c_name', models.CharField(null=True, max_length=255, blank=True)),
                ('c_type', models.CharField(null=True, max_length=255, blank=True)),
                ('c_site', models.CharField(null=True, max_length=255, blank=True)),
                ('uploader', models.CharField(null=True, max_length=255, blank=True)),
                ('custters_spec', models.CharField(null=True, max_length=255, blank=True)),
                ('case_name', models.DateTimeField(null=True, blank=True)),
                ('priority', models.IntegerField(null=True, blank=True)),
                ('alter_cause', models.TextField(null=True, blank=True)),
                ('alter_front', models.TextField(null=True, blank=True)),
                ('alter_later', models.TextField(null=True, blank=True)),
                ('desc_file', models.TextField(null=True, blank=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('modify_time', models.DateTimeField(null=True, blank=True)),
                ('upload_time', models.DateTimeField(null=True, blank=True)),
                ('c_confirm', models.IntegerField(null=True, blank=True)),
                ('copy_id', models.IntegerField(null=True, blank=True)),
                ('drawingtype', models.IntegerField(null=True, blank=True)),
                ('modify_draft', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'tb_customer_paper',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbCutterType',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('cutter_type', models.CharField(null=True, max_length=20, blank=True)),
                ('modify_time', models.DateTimeField(auto_now_add=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'tb_cutter_type',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbDepense',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('modify_time', models.DateTimeField(auto_now_add=True)),
                ('accptor', models.CharField(null=True, max_length=255, blank=True)),
                ('distributor', models.CharField(null=True, max_length=255, blank=True)),
                ('drawing_file_id', models.IntegerField(null=True, blank=True)),
                ('status', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'tb_depense',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbDrawing',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('drawing_type', models.CharField(null=True, max_length=50, blank=True)),
                ('creator', models.CharField(null=True, max_length=30, blank=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('modify_time', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'db_table': 'tb_drawing',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbDrawingFile',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('file_name', models.CharField(null=True, max_length=255, blank=True)),
                ('file_size', models.IntegerField(null=True, blank=True)),
                ('file_path', models.CharField(null=True, max_length=255, blank=True)),
                ('uploader', models.CharField(null=True, max_length=255, blank=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('file_type', models.IntegerField(null=True, blank=True)),
                ('cus', models.IntegerField(null=True, blank=True)),
                ('draw_type', models.CharField(null=True, max_length=255, blank=True)),
                ('dev_type', models.CharField(null=True, max_length=255, blank=True)),
                ('b_all', models.IntegerField(null=True, blank=True)),
                ('sign_filepath', models.CharField(null=True, max_length=255, blank=True)),
                ('seal_filepath', models.CharField(null=True, max_length=255, blank=True)),
            ],
            options={
                'db_table': 'tb_drawing_file',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbDrawingSeal',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('creator', models.CharField(null=True, max_length=50, blank=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('modify_time', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'db_table': 'tb_drawing_seal',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbPrintFile',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('p_file', models.CharField(null=True, max_length=50, blank=True)),
                ('p_reason', models.CharField(null=True, max_length=50, blank=True)),
                ('p_num', models.IntegerField(null=True, blank=True)),
                ('p_depar', models.CharField(null=True, max_length=50, blank=True)),
                ('p_name', models.CharField(null=True, max_length=50, blank=True)),
                ('p_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'tb_print_file',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbPrinting',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('signer', models.CharField(null=True, max_length=255, blank=True)),
                ('print_no', models.IntegerField(null=True, blank=True)),
                ('recycling_no', models.IntegerField(null=True, blank=True)),
                ('print_status', models.IntegerField(null=True, blank=True)),
                ('modify_time', models.DateTimeField(auto_now_add=True)),
                ('drawing_file_id', models.IntegerField(null=True, blank=True)),
                ('sponsor', models.CharField(null=True, max_length=255, blank=True)),
                ('dispensing', models.CharField(null=True, max_length=255, blank=True)),
            ],
            options={
                'db_table': 'tb_printing',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbProdectStarge',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('product_stage', models.CharField(null=True, max_length=20, blank=True)),
                ('modify_time', models.DateTimeField(auto_now_add=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'tb_prodect_starge',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbProjectPaper',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('ecn_no', models.CharField(null=True, max_length=255, blank=True, db_column='ECN_NO')),
                ('version', models.CharField(null=True, max_length=255, blank=True)),
                ('definer_name', models.CharField(null=True, max_length=255, blank=True)),
                ('st_site', models.CharField(null=True, max_length=255, blank=True, db_column='ST_site')),
                ('project_name', models.CharField(null=True, max_length=255, blank=True)),
                ('p_type', models.CharField(null=True, max_length=255, blank=True)),
                ('custters_spec', models.CharField(null=True, max_length=255, blank=True)),
                ('priority', models.IntegerField(null=True, blank=True)),
                ('secrecy_level', models.IntegerField(null=True, blank=True)),
                ('id_stage_type', models.IntegerField(null=True, blank=True)),
                ('stage_type', models.CharField(null=True, max_length=255, blank=True)),
                ('case_no', models.CharField(null=True, max_length=255, blank=True, db_column='case_NO')),
                ('alter_cause', models.TextField(null=True, blank=True)),
                ('alter_front', models.TextField(null=True, blank=True)),
                ('alter_later', models.TextField(null=True, blank=True)),
                ('desc_file', models.TextField(null=True, blank=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('modify_time', models.DateTimeField(null=True, blank=True)),
                ('id_cutter_type', models.IntegerField(null=True, blank=True)),
                ('cutter_type', models.CharField(null=True, max_length=255, blank=True)),
                ('id_copy', models.IntegerField(null=True, blank=True)),
                ('upload_time', models.DateTimeField(null=True, blank=True)),
                ('uploader', models.CharField(null=True, max_length=255, blank=True)),
                ('p_confirm', models.IntegerField(null=True, blank=True)),
                ('drawing_type', models.CharField(null=True, max_length=255, blank=True)),
                ('id_drawing_type', models.IntegerField(null=True, blank=True)),
                ('dev_type', models.CharField(null=True, max_length=255, blank=True)),
                ('id_dev_type', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'tb_project_paper',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbSeal',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('seal_name', models.CharField(null=True, max_length=100, blank=True)),
                ('seal_no', models.CharField(null=True, max_length=50, blank=True)),
                ('seal_size', models.CharField(null=True, max_length=50, blank=True)),
                ('seal_desc', models.CharField(null=True, max_length=255, blank=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('creator', models.CharField(null=True, max_length=25, blank=True)),
                ('seal_href', models.CharField(null=True, max_length=100, blank=True)),
                ('modify_time', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'db_table': 'tb_seal',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Duty',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('name', models.CharField(max_length=50)),
                ('code', models.CharField(null=True, max_length=50, blank=True)),
                ('desc', models.CharField(null=True, max_length=500, blank=True)),
            ],
            options={
                'db_table': 'tb_duty',
            },
        ),
        migrations.CreateModel(
            name='ForwardBackMode',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('name', models.CharField(max_length=50)),
            ],
            options={
                'db_table': 'tb_forward_back_mode',
            },
        ),
        migrations.CreateModel(
            name='ForwardMode',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('name', models.CharField(max_length=50)),
            ],
            options={
                'db_table': 'tb_forward_mode',
            },
        ),
        migrations.CreateModel(
            name='NodeCase',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('order_number', models.IntegerField(null=True, blank=True)),
                ('review_result', models.CharField(max_length=100)),
                ('approver', models.CharField(null=True, max_length=45, blank=True)),
                ('rectime', models.DateTimeField(null=True, blank=True)),
                ('username', models.CharField(max_length=45)),
                ('user_choose', models.CharField(null=True, max_length=100, blank=True)),
                ('status', models.CharField(null=True, max_length=10, blank=True)),
                ('user_mode', models.CharField(null=True, max_length=25, blank=True, db_column='user_mode')),
                ('forward_mode', models.CharField(null=True, max_length=25, blank=True, db_column='forward_mode')),
                ('forward_back_mode', models.CharField(null=True, max_length=25, blank=True, db_column='forward_back_mode')),
                ('reject_mode', models.CharField(null=True, max_length=25, blank=True, db_column='reject_mode')),
                ('forward_list', models.CharField(null=True, max_length=100, blank=True)),
                ('user_role_list', models.CharField(null=True, max_length=100, blank=True)),
                ('agent', models.CharField(null=True, max_length=45, blank=True)),
            ],
            options={
                'db_table': 'tb_node_case',
            },
        ),
        migrations.CreateModel(
            name='NodeGroup',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('name', models.CharField(max_length=45)),
                ('order_number', models.IntegerField()),
            ],
            options={
                'db_table': 'tb_node_group',
            },
        ),
        migrations.CreateModel(
            name='Org',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('org_name', models.CharField(max_length=100)),
                ('parent_id', models.IntegerField(null=True, blank=True)),
                ('create_date', models.DateTimeField()),
                ('org_code', models.CharField(null=True, max_length=50, blank=True)),
                ('cost_code', models.CharField(null=True, max_length=50, blank=True)),
                ('org_desc', models.CharField(null=True, max_length=500, blank=True)),
                ('org_desc2', models.CharField(null=True, max_length=500, blank=True)),
                ('is_active', models.IntegerField()),
            ],
            options={
                'db_table': 'tb_org',
            },
        ),
        migrations.CreateModel(
            name='OrgLevel',
            fields=[
                ('level', models.IntegerField(primary_key=True, serialize=False)),
                ('level_name', models.CharField(max_length=100)),
                ('level_code', models.CharField(max_length=50)),
                ('duty', models.ForeignKey(to='files.Duty')),
            ],
            options={
                'db_table': 'tb_org_level',
            },
        ),
        migrations.CreateModel(
            name='OrgRole',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('name', models.CharField(max_length=100)),
                ('code', models.CharField(max_length=50)),
                ('desc', models.CharField(max_length=500)),
                ('create_date', models.DateTimeField()),
            ],
            options={
                'db_table': 'tb_org_role',
            },
        ),
        migrations.CreateModel(
            name='RejectMode',
            fields=[
                ('id', models.IntegerField(primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=50)),
            ],
            options={
                'db_table': 'tb_reject_mode',
            },
        ),
        migrations.CreateModel(
            name='ReminderLog',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('no', models.CharField(max_length=50)),
                ('rectime', models.DateTimeField()),
                ('applicant', models.CharField(max_length=50)),
                ('user', models.CharField(max_length=100)),
                ('name', models.CharField(max_length=50)),
                ('type', models.CharField(max_length=20)),
                ('title', models.CharField(max_length=50)),
                ('url', models.CharField(max_length=50)),
                ('status', models.IntegerField()),
                ('num', models.IntegerField(default=0)),
            ],
            options={
                'db_table': 'tb_workflow_reminder_log',
            },
        ),
        migrations.CreateModel(
            name='Status',
            fields=[
                ('status_code', models.IntegerField(primary_key=True, serialize=False)),
                ('status_name', models.CharField(max_length=100)),
                ('status_desc', models.CharField(max_length=100)),
                ('id', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='TbForms',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('table_name', models.CharField(max_length=100)),
                ('table_content', models.TextField(null=True, blank=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('creater', models.CharField(null=True, max_length=15, blank=True)),
                ('version', models.CharField(null=True, max_length=10, blank=True)),
                ('status', models.IntegerField(null=True, blank=True)),
                ('desc', models.CharField(null=True, max_length=255, blank=True)),
                ('modify_time', models.CharField(null=True, max_length=15, blank=True)),
                ('sign_type', models.CharField(null=True, max_length=20, blank=True)),
                ('layout', models.CharField(null=True, max_length=20, blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='TbWorkflowRole2',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('username', models.CharField(null=True, max_length=50, blank=True)),
            ],
            options={
                'db_table': 'tb_workflow_role2',
            },
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('password', models.CharField(max_length=128)),
                ('last_login', models.DateTimeField(null=True, blank=True)),
                ('is_superuser', models.IntegerField()),
                ('username', models.CharField(max_length=30, unique=True)),
                ('first_name', models.CharField(max_length=30)),
                ('last_name', models.CharField(max_length=30)),
                ('email', models.CharField(max_length=254)),
                ('is_staff', models.IntegerField()),
                ('is_active', models.IntegerField()),
                ('date_joined', models.DateTimeField()),
                ('nfc_id', models.CharField(null=True, max_length=100, blank=True, db_column='NFC_id')),
                ('ext', models.CharField(null=True, max_length=50, blank=True)),
                ('short_number', models.CharField(null=True, max_length=50, blank=True)),
                ('mobile_phone', models.CharField(null=True, max_length=50, blank=True)),
                ('head', models.CharField(null=True, max_length=100, blank=True)),
                ('sign', models.CharField(null=True, max_length=100, blank=True)),
                ('status', models.ForeignKey(to='files.Status')),
            ],
            options={
                'db_table': 'tb_user',
            },
        ),
        migrations.CreateModel(
            name='UserMode',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('name', models.CharField(max_length=50)),
            ],
            options={
                'db_table': 'tb_user_mode',
            },
        ),
        migrations.CreateModel(
            name='UserOrg',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('create_date', models.DateTimeField()),
                ('org', models.ForeignKey(to='files.Org')),
                ('org_role', models.ForeignKey(to='files.OrgRole')),
                ('user', models.ForeignKey(to='files.User')),
            ],
            options={
                'db_table': 'tb_user_org',
            },
        ),
        migrations.CreateModel(
            name='WfsAgent',
            fields=[
                ('id', models.IntegerField(primary_key=True, serialize=False)),
                ('user', models.CharField(max_length=20)),
                ('username', models.CharField(max_length=20)),
                ('rectime', models.DateTimeField()),
                ('update', models.DateTimeField()),
                ('enabled', models.IntegerField(null=True, blank=True)),
                ('agent', models.ForeignKey(to='files.User')),
                ('org', models.ForeignKey(to='files.Org')),
            ],
            options={
                'db_table': 'tb_wfs_agent',
            },
        ),
        migrations.CreateModel(
            name='WFSOrgRole',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('rectime', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'tb_wfs_org_role',
            },
        ),
        migrations.CreateModel(
            name='Workflow',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('name', models.CharField(max_length=20)),
                ('description', models.CharField(null=True, max_length=150, blank=True)),
                ('username', models.CharField(null=True, max_length=45, blank=True)),
                ('effective_time', models.IntegerField(null=True, blank=True)),
                ('end', models.IntegerField(null=True, blank=True)),
                ('start', models.IntegerField(null=True, blank=True)),
                ('enabled', models.IntegerField(null=True, blank=True)),
                ('founder', models.CharField(null=True, max_length=30, blank=True)),
                ('rectime', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
                ('workflow_type', models.CharField(max_length=50)),
            ],
            options={
                'db_table': 'tb_workflow',
            },
        ),
        migrations.CreateModel(
            name='WorkflowAgent',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('rectime', models.DateTimeField()),
                ('start_time', models.DateTimeField()),
                ('end_time', models.DateTimeField()),
                ('status', models.IntegerField()),
                ('action', models.IntegerField()),
                ('form_list', models.TextField()),
                ('user_agent', models.ForeignKey(to='files.WfsAgent')),
            ],
            options={
                'db_table': 'tb_workflow_agent',
            },
        ),
        migrations.CreateModel(
            name='WorkflowApprovalRecord',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('status', models.CharField(null=True, max_length=20, blank=True)),
                ('approver', models.CharField(null=True, max_length=20, blank=True)),
                ('username', models.CharField(null=True, max_length=45, blank=True)),
                ('next', models.CharField(null=True, max_length=20, blank=True)),
                ('start_time', models.DateTimeField(null=True, blank=True)),
                ('end_time', models.DateTimeField(null=True, blank=True)),
                ('order_number', models.IntegerField(null=True, blank=True)),
                ('action', models.CharField(null=True, max_length=20, blank=True)),
                ('next_approver', models.CharField(max_length=100)),
                ('desc', models.CharField(max_length=200)),
                ('signature', models.CharField(max_length=200)),
                ('filename', models.CharField(max_length=200)),
                ('pdf', models.CharField(max_length=200)),
            ],
            options={
                'db_table': 'tb_workflow_approval_record',
            },
        ),
        migrations.CreateModel(
            name='Workflownode',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('name', models.CharField(max_length=45)),
                ('order_number', models.IntegerField(null=True, blank=True)),
                ('property', models.TextField()),
                ('workflow', models.ForeignKey(to='files.Workflow')),
            ],
            options={
                'db_table': 'tb_workflownode',
            },
        ),
        migrations.CreateModel(
            name='Workflowrecord',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('no', models.CharField(null=True, max_length=50, blank=True, db_column='NO')),
                ('pdfmode', models.CharField(max_length=200)),
                ('desc', models.CharField(null=True, max_length=200, blank=True)),
                ('username', models.CharField(null=True, max_length=45, blank=True)),
                ('applicant', models.CharField(null=True, max_length=45, blank=True)),
                ('status', models.CharField(null=True, max_length=45, blank=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('pdf', models.CharField(max_length=200)),
                ('end_time', models.CharField(null=True, max_length=45, blank=True)),
                ('org_id', models.IntegerField()),
                ('signature_graph', models.IntegerField()),
                ('workflow', models.ForeignKey(to='files.Workflow')),
            ],
            options={
                'db_table': 'tb_workflowrecord',
            },
        ),
        migrations.CreateModel(
            name='WorkflowRole',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('role', models.CharField(max_length=30)),
                ('desc', models.CharField(max_length=100)),
                ('type', models.CharField(max_length=20)),
            ],
            options={
                'db_table': 'tb_workflow_role',
            },
        ),
        migrations.CreateModel(
            name='WorkflowRoleUser',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
                ('user_id', models.IntegerField()),
                ('workflow_role', models.ForeignKey(related_name='user_2', to='files.WorkflowRole')),
            ],
            options={
                'db_table': 'tb_workflow_role_user',
            },
        ),
        migrations.AlterUniqueTogether(
            name='workflowrole',
            unique_together=set([('role', 'desc')]),
        ),
        migrations.AddField(
            model_name='workflowapprovalrecord',
            name='workflow_record',
            field=models.ForeignKey(to='files.Workflowrecord'),
        ),
        migrations.AddField(
            model_name='wfsorgrole',
            name='role',
            field=models.ForeignKey(related_name='user2', to='files.WorkflowRole'),
        ),
        migrations.AddField(
            model_name='wfsorgrole',
            name='user',
            field=models.ForeignKey(to='files.User'),
        ),
        migrations.AddField(
            model_name='org',
            name='org_level',
            field=models.ForeignKey(to='files.OrgLevel'),
        ),
        migrations.AddField(
            model_name='nodegroup',
            name='workflowrecord',
            field=models.ForeignKey(to='files.Workflowrecord'),
        ),
        migrations.AddField(
            model_name='nodecase',
            name='group',
            field=models.ForeignKey(related_name='group', to='files.NodeGroup'),
        ),
    ]
